<?php

include "../utils/_connection.php";
$var = conectar();
session_start();

//LeArticleData
$title = $_POST['title'];
$abstract = $_POST['abs'];
$keywords = $_POST['key'];
$content = $_POST['content'];
$references = $_POST['references'];
$biography = $_POST['biography'];
$co_authors = $_POST['co-authors'];

session_start();
$id = $_SESSION['id'];
//LeAuthorData
$sql = "SELECT * FROM authors WHERE id_author ='$id'";
$res = mysql_query($sql);
$obj = mysql_fetch_object($res);


?>


<!DOCTYPE HTML>
<html>
<head>
	<title>ReCIBE</title>
	<meta name="description" content="ReCIBE" />
	<meta name="keywords" content="ReCIBE keywords, website keywords" />
	<meta http-equiv="content-type" content="text/html; charset=UTF-8" />
	<link rel="stylesheet" type="text/css" href="../css/style.css" title="style" />

	<script type="text/javascript" src="http://ajax.googleapis.com/ajax/libs/jquery/1.4.3/jquery.min.js"></script>

	<script type="text/javascript">
		$(document).ready(function(){
							// scroll body to 0px on click
							$('#back-top a').click(function () {
								$('body,html').animate({
									scrollTop: 0
								}, 800);
								return false;
							});
						});
	</script>
	<script type="text/javascript">

		var _gaq = _gaq || [];
		_gaq.push(['_setAccount', 'UA-34099233-1']);
		_gaq.push(['_trackPageview']);

		(function() {
			var ga = document.createElement('script'); ga.type = 'text/javascript'; ga.async = true;
			ga.src = ('https:' == document.location.protocol ? 'https://ssl' : 'http://www') + '.google-analytics.com/ga.js';
			var s = document.getElementsByTagName('script')[0]; s.parentNode.insertBefore(ga, s);
		})();

	</script>
</head>

<body>
	<div id="main">
		<div id="header">
			<div id="hcontent">
				<div id="logocontent">
					<a href="http://recibe.cucei.udg.mx/index.html"><img src="../../style/logo.jpg"></a>
				</div>
				<div id="Lcontent">
					<div id="issn">
					</div><br />
					<div id="lenguajes">
						<center>
							<a href="../../en/vol1-no1/biomedica.html"><img src="../img/icons/ingles.png"></a><br />
							<a href="http://facebook.com/recibecucei/"><img src="../img/icons/facebook.png"></a>
							<a href="https://twitter.com/recibecucei"><img src="../img/icons/twitter.png"></a>
							<a href="pdf/biomedica.pdf?ver=24062013" target="_blank" ><img src="../img/icons/pdf.png"></a>
						</center>
					</div>
				</div><br />
			</div><!-- fin del hcontent -->
			<div id="menubar">
				<ul id="menu">
					<li ><a href="index.html">Índice</a></li>
					<li class="selected"><a href="index.html">Biomédica</a></li>
				</ul>
			</div>
			<div id="linemenu"></div>
		</div><!--fin del header-->
		<div id="site_content">
			<div id="content">
				<div style="height:21px;width:100%">
					<div style="float:right">
						<em><strong>ReCIBE, A&ntildeo 1 No.1, Noviembre 2012</strong></em>
					</div>
				</div>
				<h1><b><?php echo $title; ?></b></h1> 

				<h2><?php echo $obj->name; ?></h2>
				<h2><?php echo $obj->center; ?><br> 
					<a href="#"><?php echo $obj->email;?></a></h2>
					<br>

					<?php
						foreach ($_POST['co-authors'] as $co_author){
	   						$co_sql = "SELECT * FROM `coauthors` WHERE name = '$co_author'";
	   						$co_res = mysql_query($co_sql);
							$co_obj = mysql_fetch_object($co_res);
					
							echo "<h2>".$co_obj->name."</h2>";
							echo "<h2>".$co_obj->center."<br>"; 
							echo "<a href=''>".$co_obj->email."</a></h2>";
							echo "<br>";
					}
					?> 

					<h4><strong> Resumen: </strong><?php echo $abstract; ?></p></h4>
					<strong> Palabras clave: </strong> <?php echo $keywords; ?> </h4> 
					<br>
					<br>
							
							<?php
							echo $content;
							?>
							
							<h3>Referencias</h3>    
							<?php echo $references; ?>
							<br>
							<h3>Notas biográficas  </h3>

							<?php echo $biography; ?>
							
							<br>
							<p id="back-top"><a href="#top"><img src="../img/icons/arrow.png"></a></p>
							<br>    
							<p>     
								&nbsp &nbsp &nbsp &nbsp &nbsp &nbsp &nbsp &nbsp &nbsp &nbsp &nbsp &nbsp &nbsp &nbsp &nbsp &nbsp &nbsp &nbsp &nbsp &nbsp &nbsp &nbsp &nbsp   &nbsp &nbsp &nbsp &nbsp &nbsp &nbsp &nbsp &nbsp &nbsp &nbsp &nbsp &nbsp &nbsp &nbsp 

								<a rel="license" href="http://creativecommons.org/licenses/by-nc-sa/2.5/mx/deed.es_ES"><img alt="Licencia de Creative Commons" style="border-width:0" src="http://i.creativecommons.org/l/by-nc-sa/2.5/mx/88x31.png" /></a><br />
								&nbsp &nbsp  &nbsp &nbsp &nbsp &nbsp &nbsp &nbsp &nbsp &nbsp &nbsp  &nbsp &nbsp &nbsp &nbsp &nbsp &nbsp &nbsp &nbsp &nbsp &nbsp &nbsp &nbsp &nbsp &nbsp 


								Esta obra está bajo una 

								<a rel="license" href="http://creativecommons.org/licenses/by-nc-sa/2.5/mx/deed.es_ES">licencia de Creative Commons</a>
								&nbsp &nbsp  &nbsp &nbsp &nbsp &nbsp &nbsp  &nbsp &nbsp &nbsp  &nbsp &nbsp &nbsp &nbsp &nbsp  &nbsp &nbsp &nbsp  &nbsp &nbsp &nbsp &nbsp &nbsp  &nbsp &nbsp &nbsp  &nbsp &nbsp &nbsp &nbsp &nbsp  &nbsp &nbsp &nbsp  &nbsp &nbsp &nbsp &nbsp &nbsp  
								<a rel="license" href="http://creativecommons.org/licenses/by-nc-sa/2.5/mx/deed.es_ES">
									Reconocimiento-NoComercial-CompartirIgual 2.5 México</a>.   

								</p>    </div>
							</div>
							<div id="content_footer"></div>
							<div id="footer">
								Av. Revolución #1500 Modulo "O"  Col. Olimpica, C.P. 44830, Guadalajara, Jalisco, México. Teléfono: +52 (33) 1378-5900. ISSN: 2007-5448
								<a href="http://www.udg.mx/">UDG </a> | <a href="http://www.cucei.udg.mx/">CUCEI</a> | <a href="http://dcc.cucei.udg.mx/">DIVEC</a><br><br><br>
							</div>
						</div>
					</body>
					</html>